package com.huang.spring.controller;

import com.huang.spring.pojo.UserInfo;

import com.huang.spring.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class UserInfoController {
    @Autowired
   private UserService userService;



    @GetMapping("/getUserinfo")
    public List<UserInfo> getUSer(){
        List<UserInfo> list=userService.getAll();
        return list;

    }
}
